<form id=group_change_form action=ChangeGroup method="post">
<table width="100%" cellpadding="5">
    <TR>
        <TD width="40%">Recipient Name</TD>
        <TD><b><TMPL_VAR name=f_name> <TMPL_VAR name=l_name></b> in group <TMPL_VAR name=recipient_group_name></TD>
    </TR>
    <TR>
        <TD>Select Groups</TD>
        <TD><SELECT id=changegroup_target_group_id>
        <OPTION value=-1>--Select Address Database--</OPTION>
        <TMPL_LOOP name=GROUPS>
                <OPTION value=<TMPL_VAR name=group_id>><TMPL_VAR name=group_id>. <TMPL_VAR name=group_name></OPTION>
        </TMPL_LOOP>
        </SELECT>
        </TD>
    </TR>
    <TR>
        <TD>Group Type</TD>
        <TD>
            <input type="radio" name=changegroup_type_id id=changegroup_type_id value=1 <TMPL_IF name=TEST_DB>checked</TMPL_IF>> Test<br>
            <input type="radio" name=changegroup_type_id id=changegroup_type_id value=2 <TMPL_IF name=REAL_DB>checked</TMPL_IF>> Real<br>
        </TD>
    </TR>
    <TR>
        <TD></TD>
        <TD>
            <input type=button id=action value='replace from existing group' onClick="replace_group();"> (move)<p>
            <input type=button id=action value='add to selected group' onClick="add_recipient_to_group()"> (add)
            <input type=hidden id=changegroup_current_recipient_group_id value=<TMPL_VAR name=recipient_group_id>>
            <input type=hidden id=changegroup_recipient_id value=<TMPL_VAR name=recipient_id>>
        </TD>
    </TR>
</table>
</form>
<div id=ajaxresult></div>
<script>

</script>